package com.tanhua.dubbo.mongo;

import com.tanhua.model.mongo.UserLike;

import java.util.List;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, String likeUserId, boolean isLike);

    List<UserLike> loveCounts(Long userId);

    List<UserLike> fanCounts(Long userId);

    List<UserLike> eachLoveCounts(Long userId);

    boolean findByIdAndLikeId(Long userId, Long aLong);

    List<UserLike> love(Long userId, Integer page, Integer pagesize);

    List<UserLike> fan(Long userId, Integer page, Integer pagesize);

    List<UserLike> eachLove(Long userId, Integer page, Integer pagesize);

}